<template>

    <div class="navbar-wrap">
        <div class="Navbarold">
            <nav>
                <div class="navbar-logo"></div>
                <div class="navbar-title">{{title}}</div>
                <div class="navbar-button">
                    <div class="nav-btn" @click="navlist_togger=!navlist_togger">
                        <img src="//p0.meituan.net/scarlett/f05f61e7a8f3f45fd071c068d7a26870356.png" alt="nav-icon" class="nav-icon">
                    </div>
                </div>
            </nav>
        </div>
        <div v-if="navlist_togger" class="nav-list">
            <div v-for="list in navlist" :key="list.id" class="nav-item" @click="navlist_togger=!navlist_togger">
                <router-link :to="list.path" >{{list.text}}</router-link>
            </div>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            title:'泽枫影城',
            navlist_togger:false,
            navlist:[
                {
                    id:1,
                    text:'首页',
                    path:'/'
                },
                {
                    id:2,
                    text:'榜单',
                    path:'/'
                },
                {
                    id:3,
                    text:'热点',
                    path:'/'
                },
                {
                    id:4,
                    text:'商城',
                    path:'/'
                },
            ]
        }
    },
    updated(){
    }
}
</script>
<style >
.page-information .Navbarold{
    background-color: #e54847;
}
.page-video .Navbarold{
    background-color: #e54847;
}
.canary .Navbarold, .inservice .Navbarold {
    background-color: #e54847;
}
.Navbarold {
    height: 1rem;
    display: -webkit-box;
    height: 0.76rem;
    overflow: hidden;
    position: relative;
    padding: 0.12rem;
}
.Navbarold nav {
    width: 100%;
    display: -webkit-box;
}
.Navbarold .navbar-logo {
    width: 2rem;
    background-size: 37%;
}
.Navbarold .navbar-title {
    -webkit-box-flex: 1;
    color: #fff;
    font-size: .36rem;
    text-align: center;
    line-height: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}
.Navbarold .navbar-button {
    position: relative;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.Navbarold .navbar-button .nav-btn {
    text-align: right;
    margin-right: 0.12rem;
}
.Navbarold .navbar-button .nav-btn img {
    width: 0.34rem;
    height: 0.32rem
}
/*  */
.nav-list {
    position: absolute;
    top: 0.96rem;
    right: 0.24rem;
    width: 2.2rem;
    z-index: 20;
    background: #fff;
    box-shadow: 0 0.06rem 0.18rem 0 rgb(0 0 0 / 10%);
}
.nav-list .nav-item {
    box-sizing: content-box;
    height: 0.91rem;
    text-align: center;
    border-bottom: 0.02rem solid #f0f0f0;
}
.nav-list .nav-item a {
    display: block;
    text-decoration: none;
    line-height: .91rem;
    font-size: .3rem;
    color: #333;
    letter-spacing: 0;
}
</style>